#include <stdio.h>
int main()
{
	int a = 5;
	int b = 7; 
	int i = 1;
	while (a*i%b)
	{
		i++;
	}
	printf("%d\n", a * i);

	return 0;
}